<template>
    <div>
        <button @click="testBtn">
            点击
        </button>
        {{test}}
    </div>
</template>
<script>
export default {
    name:'TEST',
    data(){
        return{
            test:1
        }
    },
    mounted(){
        this.test++
    }
    ,
    methods:{
        testBtn(){
            this.test++
        }
    }
}
</script>
